import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router";
import "reset.css";
import "virtual:uno.css";
import "./assets/font/iconfont.css";
import { initRem } from "./utils/rem";
import JobItem from "./components/job-item.vue";
import CustomInput from "./components/custom-input.vue";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import Cloud from "leancloud-storage";
import { BASE, ID, KEY } from "./config";
initRem(); //触发rem适配
// LeanCloud的SDK初始化
Cloud.init({
  appId: ID,
  appKey: KEY,
  serverURL: BASE,
});
let pinia = createPinia();
pinia.use(piniaPluginPersistedstate); //为pinia配置持久化存储的插件
let app = createApp(App);
app.use(router);
app.use(pinia);
app.component("job-item", JobItem);
app.component("custom-input", CustomInput);

app.mount("#app");
